home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Technotools
/
Technotools (Chestnut CD-ROM)(1993).ISO
/
misc_pto
/
boah
/
boah.doc
next >
Wrap
Text File
|
1987-03-25
|
4KB
|
86 lines
BoahCalc Utility Program
<c> 1985 by Debbie Cooper
Version 2.0
BoahCalc is a machine language program that allows you to
perform addition, subtraction, multiplication, division and a
host of bit manipulation functions. These functions include XOR,
OR, SHR, SAL, SHL, ROL, AND, NOT, RCL, SAR, RCR, and ROR. Those
who write assembly language or BASIC programs for the Tandy 1000
or other IBM compatible systems will appreciate the wide use to
which BoahCalc can be put as the results are readily visible.
The BoahCalc program (short for Binary-Octal-Ascii-
Hexadecimal Calculator) is supplied on a diskette along with
another file called BOAHCALC.BUF. This file must be present on
the backup copy at all times in order for the program to work
correctly.
When BoahCalc is first executed, you will be presented with
a screen display which shows the current values, typically set to
zeros, for Values A, B and C respectively. On the bottom half of
the display the various functions that can be performed are
shown, as well as the function key commands to invoke the
functions.
Inputting Values
Before any function can be performed, the user must enter
one or both values A and B. Note that some functions only
require one value that will be worked on, others require both
Value A and B before the result can be displayed as Value C.
The program automatically defaults to the input mode of
ascii decimal, however the user may change this by using function
key F5. You will be prompted to enter the letter of the input
mode you wish to use, B=Binary, O=Octal, A=Ascii Decimal, or
H=Hexadecimal. The method of input that you requested will be
shown on the sixth line of the video screen.
You are now ready to input a number for value A. To do this
depress function key F1. The cursor will be positioned beside
the Value A prompt in the top of the display. Enter your digits
and press <ENTER> to signify end of input. The binary, octal,
decimal and hexadecimal equivalents will be displayed on the
screen. To input a number for value B, follow this same
procedure.
Invoking Functions
After you have entered values for value A (and/or value B)
you may perform any one of the functions listed on the video
display. First you must select which function you want
performed. To do this depress function key F3. The first
function, ADD, will be displayed as reverse video. You may move
the 'block' using the left, right, up and down arrows to the
particular function you want to execute. Press <ENTER> to select
the function.
For example, if you had selected to ADD values A and B
together, you would depress the F3 function key, press <ENTER>
and the total of values A and B would be displayed as value C on
the video screen.
Those functions that require only value A in order to be
invoked also display their result in value C.
F6 - Move Value C to Value A
This function key when depressed, will substitute the
current value of C and copy it into value A. So if, for example,
you wish to select function SHR (shift right) on value A, you
will have moved it one bit to the right. The new value or result
of this operation will be displayed as value C. If you want to
display a second SHR operation on this same value, then you must
first use the function key F6 to transfer the new value to value
A and subsequently perform another SHR operation on that
variable.
Abort Program
To return control to MS-DOS, simply depress the F4 function
key.
that
variable.
Abort Program
To return control to MS-DOS